﻿<!--{inc(header.view.html)}-->

<div class="content" id="content">
	<div class="top-menu-box">
    	<div class="z">
            <span class="z-f"><a href="#">网站设置</a>&nbsp;&gt;</span>
            <span class="z-f"><a href="#">修改导航</a></span>
            <div class="z-f-r"><span class="user-t">当前语言为：</span><span class="user-info"><?php echo $GLOBALS['langdata'][$GLOBALS['langtype']] ;?></span><!-- <a href="#">退出</a> --></div>
        </div>
        <div class="top-menu">
        	<ul>
            	<li><a href="index.php?app=nav&act=index"  target="mainframe">导航列表</a></li>
				<li><a href="index.php?app=nav&act=add" target="mainframe">新增导航</a></li>
				<li class="current"><a href="#" >修改导航</a></li>	
				
            </ul>
            <div class="clear"></div>
        </div>
    </div>
    
    <div class="main">


                             <form action="?app=nav&act=editpost" method="post">

<table  class="data" >
<tbody>
                                   
								               <tr >
				<td width="20%"><span class="bold">上级分类：</span></td>
				<td>                                
                    <select name="data[parent_id]" >
				    <option value="0">顶级分类</option>
                         {$catgystr}
					</select>       
                                
               </td>
			</tr>                                       
                           
                                   
                                   
                                   <tr >

	                                      <td width="30%">链接文字:</td>
	                                      <td><input type="text" name="data[title]" value="{$navdata.name}" maxlength="30" /></td>
                                   </tr>
                                   <tr >
	                                      <td>链接提示文字(选填):</td>
	                                      <td><input type="text" name="data[config][alt]" value="{$navdata.config.alt}" maxlength="50" /></td>
                                   </tr>
                                   <tr >
	                                      <td>链接地址(如果是绝对地址，请以 http:// 或 https:// 开头)【<font color="#FF0000">如果链接是站内链接，请点击后面的下拉列表框来生成。这样可以防止<a href="http://www.phpscup.com/bbs/view.php?tid=147" target="_blank">错误发生</a>。</font>】:</td>

	                                      <td>
                                          <input type="text" name="data[url]" size="50"  maxlength="80"  value="{$navdata.link}"  id="keyword_m" />
    	                                 <select name="select4" onChange="MM_keyword2(this,'keyword_m')" > 
										 <option  value="">请选择...</option> 
                                         <option  value="{SITE_URL}/?app=phpscup">|--主页</option>
										 
                                         <!--{foreach($module_cat_data as $_key => $_value )}--> 
                                         <option  value="{SITE_URL}/?app={$_key}" >|--{$_value.alias}(首页)</option>										 
                                             <!--{foreach($_value.catdata as $_key1 => $_value1 )}-->										  
		                                     <!--{if ($_value1.cat_name)}--> 
                                             <option  value="{SITE_URL}/?app={$_key}&cat={$_value1.cat_id}" style="color:red;">|--|--{$_value1.str_pad}{$_value1.cat_name}</option>
                                              <!--{/if}--> 
		                                      <!--{/foreach}--> 
		                                 <!--{/foreach}--> 										 
										                                        
                                          
                                         <option  value="{SITE_URL}/?app=user&act=index">|--登入页</option> 
                                         <option  value="{SITE_URL}/?app=user&act=reg">|--注册页</option> 
                                      
                                         <optgroup label='|--单独页面'></optgroup>
                                         <!--{foreach($lw_data as $_key => $_value )}-->
                                         <option  value="{SITE_URL}/{$_value.filepath}" style="color:red;">|--|--{$_value.name}</option>                                           
                                          <!--{/foreach}--> 

                                         <optgroup label='|--专题页面'></optgroup>
                                         <!--{foreach($subject_data as $_key => $_value )}-->
                                         <option  value="{SITE_URL}/{$_value.filepath}" style="color:red;">|--|--{$_value.name}</option>                                           
                                          <!--{/foreach}--> 										  
										  
										  
	                                     </select>	                                      
                                          
  <SCRIPT LANGUAGE="JavaScript">
<!--

function get_obj(obj){
   return document.getElementById(obj);
}

function MM_keyword2(selObj,str){ //v3.0
  va=selObj.options[selObj.selectedIndex].value
  if (va!='')
  {

		get_obj(str).value=va;

  } 
}

//-->
</script>  	                                                                  
                                          
                                          
                                          </td>
                                  </tr>
                                  
                                  
                                  
                                  <tr >
	                                      <td>链接打开目标(默认为当前浏览窗口):</td>
	                                      <td>
	                                      <select name="data[config][target]">
		                                       <option value="_self" <!--{if ("_self" ==$navdata.config.target)}-->selected<!--{/if}-->>_self</option>
		                                       <option value="_blank" <!--{if ("_blank" ==$navdata.config.target)}-->selected<!--{/if}-->>_blank</option>
		                                       <option value="_parent" <!--{if ("_parent" ==$navdata.config.target)}-->selected<!--{/if}-->>_parent</option>
		                                       <option value="_top" <!--{if ("_top" ==$navdata.config.target)}-->selected<!--{/if}-->>_top</option>
	                                     </select>
	                                     </td>
                                 </tr>
                                 <tr >
	                                     <td>导航位置(系统的顶部或底部):</td>
	                                     <td><input type="radio" name="data[position]" value="top" id="top" <!--{if ("top" ==$navdata.whree)}-->checked<!--{/if}-->  /><label for="top">顶部</label>&nbsp;<input type="radio" name="data[position]" value="bottom" id="bottom" <!--{if ("bottom" ==$navdata.whree)}-->checked<!--{/if}--> /><label for="bottom">底部</label></td>

                                </tr>
                                <tr >
	                                     <td>&nbsp;</td>
	                                     <td><input type="hidden" name="data[id]" value="{$navdata.nav_id}" /><input type="submit" class="buton" value=" 提 交 " /></td>
                                </tr>
            </tbody>
        </table>
                                </form>
	

	
        
        <div class="notic"><img  src="{$web_view_dir}style/images/light.gif" align="absmiddle" /> <b>提示: </b> <span > 如果想把新的新闻分类，新的产品分类，新的单独页添加到导航栏中，请先添加新闻分类，产品分类，单独页面，然后再在链接地址的下拉列表框中选择就可以了。</span>	</div>
    </div>
</div>
<!--{inc(footer.view.html)}-->